package com.SouthernWall_404.age_tool.common.init;

import com.SouthernWall_404.age_tool.AgeTool;
import com.SouthernWall_404.age_tool.common.world.Entity.ExcuteBlockEntity;
import com.SouthernWall_404.age_tool.common.world.Entity.MimicBlockEntity;
import com.SouthernWall_404.age_tool.common.world.Entity.MusicBlockEntity;
import com.SouthernWall_404.age_tool.common.world.Entity.TriggerBlockEntity;
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

public class ModBlockEntities {
    public static final DeferredRegister<BlockEntityType<?>> BLOCK_ENTITY_TYPE=DeferredRegister.create(ForgeRegistries.BLOCK_ENTITY_TYPES, AgeTool.MODID);

    public static final RegistryObject<BlockEntityType<MusicBlockEntity>> MUSIC_BLOCK_ENTITY= BLOCK_ENTITY_TYPE.register("music_blockentity",
            ()->BlockEntityType.Builder.of(MusicBlockEntity::new,
                    ModBlocks.RADIO_BLOCK.get())
                    .build(null));
    public static final RegistryObject<BlockEntityType<TriggerBlockEntity>> TRIGGER_BLOCK_ENTITY= BLOCK_ENTITY_TYPE.register("trigger_blockentity",
            ()->BlockEntityType.Builder.of(TriggerBlockEntity::new,
                            ModBlocks.RIGHT_CLICK_TRIGGER_BLOCK.get())
                    .build(null));
    public static final RegistryObject<BlockEntityType<MimicBlockEntity>> MIMIC_BLOCK_ENTITY= BLOCK_ENTITY_TYPE.register("mimic_blockentity",
            ()->BlockEntityType.Builder.of(MimicBlockEntity::new,
                            ModBlocks.RIGHT_CLICK_TRIGGER_BLOCK.get())
                    .build(null));

    public static final RegistryObject<BlockEntityType<ExcuteBlockEntity>> EXCUTER_BLOCK_ENTITY= BLOCK_ENTITY_TYPE.register("excuter_blockentity",
            ()->BlockEntityType.Builder.of(ExcuteBlockEntity::new,
                            ModBlocks.EXCUTER.get())
                    .build(null));
}
